package cn.com.pureAppApi.dao;

import cn.com.pureAppApi.entity.AuthoritiesEntity;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.BaseMapper;
/**
 * InnoDB free: 10240 kB
 * 
 * QQ讨论群:76989293
 * @email 2696701142@qq.com
 * @date 2018-06-12 16:51:48
 */
@Mapper
public interface AuthoritiesMapper extends BaseMapper<AuthoritiesEntity> {
	
		/**
	 * 根据Parameter查找返回对象
	 * @param Parameter
	 * @return
	 */
		@Select(" SELECT  id ,   username ,   authority   FROM app_authorities WHERE id = #{id}")
		AuthoritiesEntity findEntityGet(@Param("id") Integer id);
	
	/**
	 * 根据Parameter查找返回List
	 * @param Parameter
	 * @return
	 */
 		@Select(" SELECT  id ,   username ,   authority   FROM app_authorities WHERE id = #{id}")
		List<AuthoritiesEntity> findEntityListByParameter(@Param("id") Integer id);
	

}
